.class Les/my$a;
.super Landroid/widget/LinearLayout;
.source "AbsBottomMenu.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/my;-><init>(Landroid/content/Context;Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/my;


# direct methods
.method constructor <init>(Les/my;Landroid/content/Context;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/my$a;->a:Les/my;

    invoke-direct {p0, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    .line 1
    :try_start_0
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-static {v0}, Les/my;->a(Les/my;)Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-virtual {v0}, Les/my;->d()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    .line 4
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    float-to-int v1, v1

    invoke-static {v0, v1}, Les/my;->a(Les/my;I)I

    .line 5
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    invoke-static {v0, v1}, Les/my;->b(Les/my;I)I

    .line 6
    iget-object v0, p0, Les/my$a;->a:Les/my;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Les/my;->a(Les/my;Z)Z

    goto :goto_1

    .line 7
    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-ne v0, v1, :cond_2

    .line 8
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-static {v0}, Les/my;->d(Les/my;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 9
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-static {v0}, Les/my;->d(Les/my;)Z

    move-result p1

    return p1

    .line 10
    :cond_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_4

    .line 11
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iget-object v2, p0, Les/my$a;->a:Les/my;

    invoke-static {v2}, Les/my;->b(Les/my;)I

    move-result v2

    int-to-float v2, v2

    sub-float/2addr v0, v2

    float-to-int v0, v0

    .line 12
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    iget-object v3, p0, Les/my$a;->a:Les/my;

    invoke-static {v3}, Les/my;->c(Les/my;)I

    move-result v3

    int-to-float v3, v3

    sub-float/2addr v2, v3

    float-to-int v2, v2

    .line 13
    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v3

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    if-le v3, v2, :cond_4

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v2

    iget-object v3, p0, Les/my$a;->a:Les/my;

    invoke-static {v3}, Les/my;->e(Les/my;)I

    move-result v3

    if-le v2, v3, :cond_4

    iget-object v2, p0, Les/my$a;->a:Les/my;

    invoke-static {v2}, Les/my;->d(Les/my;)Z

    move-result v2

    if-nez v2, :cond_4

    const/4 v2, 0x3

    .line 14
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->setAction(I)V

    .line 15
    invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    if-gez v0, :cond_3

    .line 16
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-virtual {v0}, Les/my;->b()V

    goto :goto_0

    .line 17
    :cond_3
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-virtual {v0}, Les/my;->c()V

    .line 18
    :goto_0
    iget-object v0, p0, Les/my$a;->a:Les/my;

    invoke-static {v0, v1}, Les/my;->a(Les/my;Z)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return v1

    :catchall_0
    move-exception v0

    .line 19
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    .line 20
    :cond_4
    :goto_1
    invoke-super {p0, p1}, Landroid/widget/LinearLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method
